/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package www.enumerators;

/**
 *
 * @author Mardavmich
 */
public enum Parity {
    
    E(1, "E", "Even Parity"),
    N(1, "N", "No Parity"),
    O(1, "O", "Odd Parity"),
    S(1, "S", "Space Parity"),
    ;

    int key;
    String value;
    String comment;
    
    Parity(int key, String value, String comment){
        this.key = key;
        this.value = value;
        this.comment = comment;
    }
    
    public static Parity getE() {
        return E;
    }

    public static Parity getN() {
        return N;
    }

    public static Parity getO() {
        return O;
    }

    public static Parity getS() {
        return S;
    }

    public int getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }

    public String getComment() {
        return comment;
    }
    
}
